#ifndef BYTEARRAY_H
#define BYTEARRAY_H

#include <string>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;

class ByteArray
{
    public:
        ByteArray();
        bool readBytesFromFile(const char *fileName);
        void setPosition(int value);
        int readInt();
        unsigned int readUnsignedInt();
        float readFloat();
        short readShort();
        int readByte();
        unsigned int readUnsignedByte();
        bool readBoolean();
        bool isFinished();
    private:
        vector<char> data;
        unsigned int position;
        size_t fileSize;
};

#endif // BYTEARRAY_H
